<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        
        let {name:[a,{girlfriends:[b,c]}]} 
        = {name:['皇帝哥哥',{girlfriends:['建宁','阿珂']}]};
        
        console.log(name);
        console.log(b);
        console.log(c);

        let {name1="ball",age1} = {
            id:18
        }
        console.log(name1);
        console.log(age1);

        let {name2,...x} = {
            name2:'yys',
            id:20,
            addr:'chn',
            phone:13300
        }
        console.log(name2);
        console.log(x);
    </script>
</body>
</html>